package com.example;

import com.example.common.Invocation;
import com.example.protocol.HttpClient;

public class Consumer {

    public static void main(String[] args) {

        Invocation invocation = new Invocation(HelloService.class.getName(), "sayHello", new Class[]{String.class}, new Object[]{"test"});

        HttpClient httpClient = new HttpClient();
        String result = httpClient.send("localhost", 8080, invocation);

        System.out.println(result);

    }
}
